package com.example.dzbsh.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FujianExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FujianExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidIsNull() {
            addCriterion("guifanluoshiid is null");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidIsNotNull() {
            addCriterion("guifanluoshiid is not null");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidEqualTo(String value) {
            addCriterion("guifanluoshiid =", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidNotEqualTo(String value) {
            addCriterion("guifanluoshiid <>", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidGreaterThan(String value) {
            addCriterion("guifanluoshiid >", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidGreaterThanOrEqualTo(String value) {
            addCriterion("guifanluoshiid >=", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidLessThan(String value) {
            addCriterion("guifanluoshiid <", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidLessThanOrEqualTo(String value) {
            addCriterion("guifanluoshiid <=", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidLike(String value) {
            addCriterion("guifanluoshiid like", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidNotLike(String value) {
            addCriterion("guifanluoshiid not like", value, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidIn(List<String> values) {
            addCriterion("guifanluoshiid in", values, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidNotIn(List<String> values) {
            addCriterion("guifanluoshiid not in", values, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidBetween(String value1, String value2) {
            addCriterion("guifanluoshiid between", value1, value2, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andGuifanluoshiidNotBetween(String value1, String value2) {
            addCriterion("guifanluoshiid not between", value1, value2, "guifanluoshiid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidIsNull() {
            addCriterion("zhengmingcailiaoid is null");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidIsNotNull() {
            addCriterion("zhengmingcailiaoid is not null");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidEqualTo(String value) {
            addCriterion("zhengmingcailiaoid =", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidNotEqualTo(String value) {
            addCriterion("zhengmingcailiaoid <>", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidGreaterThan(String value) {
            addCriterion("zhengmingcailiaoid >", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidGreaterThanOrEqualTo(String value) {
            addCriterion("zhengmingcailiaoid >=", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidLessThan(String value) {
            addCriterion("zhengmingcailiaoid <", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidLessThanOrEqualTo(String value) {
            addCriterion("zhengmingcailiaoid <=", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidLike(String value) {
            addCriterion("zhengmingcailiaoid like", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidNotLike(String value) {
            addCriterion("zhengmingcailiaoid not like", value, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidIn(List<String> values) {
            addCriterion("zhengmingcailiaoid in", values, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidNotIn(List<String> values) {
            addCriterion("zhengmingcailiaoid not in", values, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidBetween(String value1, String value2) {
            addCriterion("zhengmingcailiaoid between", value1, value2, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andZhengmingcailiaoidNotBetween(String value1, String value2) {
            addCriterion("zhengmingcailiaoid not between", value1, value2, "zhengmingcailiaoid");
            return (Criteria) this;
        }

        public Criteria andNewfilenameIsNull() {
            addCriterion("newfilename is null");
            return (Criteria) this;
        }

        public Criteria andNewfilenameIsNotNull() {
            addCriterion("newfilename is not null");
            return (Criteria) this;
        }

        public Criteria andNewfilenameEqualTo(String value) {
            addCriterion("newfilename =", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameNotEqualTo(String value) {
            addCriterion("newfilename <>", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameGreaterThan(String value) {
            addCriterion("newfilename >", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameGreaterThanOrEqualTo(String value) {
            addCriterion("newfilename >=", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameLessThan(String value) {
            addCriterion("newfilename <", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameLessThanOrEqualTo(String value) {
            addCriterion("newfilename <=", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameLike(String value) {
            addCriterion("newfilename like", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameNotLike(String value) {
            addCriterion("newfilename not like", value, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameIn(List<String> values) {
            addCriterion("newfilename in", values, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameNotIn(List<String> values) {
            addCriterion("newfilename not in", values, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameBetween(String value1, String value2) {
            addCriterion("newfilename between", value1, value2, "newfilename");
            return (Criteria) this;
        }

        public Criteria andNewfilenameNotBetween(String value1, String value2) {
            addCriterion("newfilename not between", value1, value2, "newfilename");
            return (Criteria) this;
        }

        public Criteria andDisplaytextIsNull() {
            addCriterion("displaytext is null");
            return (Criteria) this;
        }

        public Criteria andDisplaytextIsNotNull() {
            addCriterion("displaytext is not null");
            return (Criteria) this;
        }

        public Criteria andDisplaytextEqualTo(String value) {
            addCriterion("displaytext =", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextNotEqualTo(String value) {
            addCriterion("displaytext <>", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextGreaterThan(String value) {
            addCriterion("displaytext >", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextGreaterThanOrEqualTo(String value) {
            addCriterion("displaytext >=", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextLessThan(String value) {
            addCriterion("displaytext <", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextLessThanOrEqualTo(String value) {
            addCriterion("displaytext <=", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextLike(String value) {
            addCriterion("displaytext like", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextNotLike(String value) {
            addCriterion("displaytext not like", value, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextIn(List<String> values) {
            addCriterion("displaytext in", values, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextNotIn(List<String> values) {
            addCriterion("displaytext not in", values, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextBetween(String value1, String value2) {
            addCriterion("displaytext between", value1, value2, "displaytext");
            return (Criteria) this;
        }

        public Criteria andDisplaytextNotBetween(String value1, String value2) {
            addCriterion("displaytext not between", value1, value2, "displaytext");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeIsNull() {
            addCriterion("uploaddatetime is null");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeIsNotNull() {
            addCriterion("uploaddatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeEqualTo(Date value) {
            addCriterion("uploaddatetime =", value, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeNotEqualTo(Date value) {
            addCriterion("uploaddatetime <>", value, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeGreaterThan(Date value) {
            addCriterion("uploaddatetime >", value, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("uploaddatetime >=", value, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeLessThan(Date value) {
            addCriterion("uploaddatetime <", value, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeLessThanOrEqualTo(Date value) {
            addCriterion("uploaddatetime <=", value, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeIn(List<Date> values) {
            addCriterion("uploaddatetime in", values, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeNotIn(List<Date> values) {
            addCriterion("uploaddatetime not in", values, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeBetween(Date value1, Date value2) {
            addCriterion("uploaddatetime between", value1, value2, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andUploaddatetimeNotBetween(Date value1, Date value2) {
            addCriterion("uploaddatetime not between", value1, value2, "uploaddatetime");
            return (Criteria) this;
        }

        public Criteria andIsvalidIsNull() {
            addCriterion("isvalid is null");
            return (Criteria) this;
        }

        public Criteria andIsvalidIsNotNull() {
            addCriterion("isvalid is not null");
            return (Criteria) this;
        }

        public Criteria andIsvalidEqualTo(Integer value) {
            addCriterion("isvalid =", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidNotEqualTo(Integer value) {
            addCriterion("isvalid <>", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidGreaterThan(Integer value) {
            addCriterion("isvalid >", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidGreaterThanOrEqualTo(Integer value) {
            addCriterion("isvalid >=", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidLessThan(Integer value) {
            addCriterion("isvalid <", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidLessThanOrEqualTo(Integer value) {
            addCriterion("isvalid <=", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidIn(List<Integer> values) {
            addCriterion("isvalid in", values, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidNotIn(List<Integer> values) {
            addCriterion("isvalid not in", values, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidBetween(Integer value1, Integer value2) {
            addCriterion("isvalid between", value1, value2, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidNotBetween(Integer value1, Integer value2) {
            addCriterion("isvalid not between", value1, value2, "isvalid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}